<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :background="{ background: 'transparent' }"
      :border-bottom="false"
      title="等级变化记录"
    ></u-navbar>
    <image class="bg" src="/static/images/bg.png" mode="widthFix"></image>
    <view class="content">
      <view class="item">
        <image
          class="item-bg"
          src="/static/images/icon-gradeChangeRecord.png"
          mode="widthFix"
        ></image>
        <image class="adjust-bg" src="/static/images/icon-tz.png" mode="widthFix"></image>
        <view class="adjust-text">平台调整</view>
        <view class="item-content">
          <view class="left">
            <view class="label">当前登记</view>
            <view class="value">M7<text>万9分润+万0.5分红</text></view>
            <view class="validPeriod">有效期:2024-01-02 12:11:32</view>
          </view>
          <image class="level" src="/static/images/my-level7.png" mode="widthFix"></image>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  padding: 0 0 60rpx;
  text-align: center;
  background-color: #f5f5f5;
  .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
  }
}

.content {
  position: relative;
  width: 100%;
  padding: 30rpx;
  overflow: hidden;
  z-index: 99;
  .item {
    position: relative;
    margin-bottom: 30rpx;
    width: 100%;
    .item-bg {
      width: 100%;
      height: auto;
    }

    .item-content {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 100%;
      padding: 30rpx 55rpx;
      z-index: 9;
      .left {
        flex: 1;
        min-width: 0;
        line-height: 1;
        text-align: left;
        .label {
          font-weight: 400;
          font-size: 24rpx;
          color: rgba($color: #ffffff, $alpha: 0.5);
        }
        .value {
          margin-top: 15rpx;
          font-family: DIN,sans-serif;
          font-weight: bold;
          font-size: 72rpx;
          color: #ffeacc;
          text {
            margin-left: 13rpx;
            font-family: PingFang SC,sans-serif;
            font-weight: 400;
            font-size: 24rpx;
          }
        }
        .validPeriod {
          margin-top: 20rpx;
          font-weight: 400;
          font-size: 24rpx;
          color: rgba($color: #ffffff, $alpha: 0.5);
        }
      }
      .level {
        margin-right: 10rpx;
        margin-bottom: 40rpx;
        width: 87rpx;
        height: auto;
      }
    }

    .adjust-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 128rpx;
      height: 28rpx;
      z-index: 10;
    }

    .adjust-text {
      position: absolute;
      top: 0;
      left: 0;
      width: 128rpx;
      height: 28rpx;
      line-height: 28rpx;
      font-weight: 400;
      font-size: 20rpx;
      color: #ffffff;
      text-align: center;
      z-index: 99;
    }
  }
}
</style>
